#ifndef _CAMERACOMP_H_
#define _CAMERACOMP_H_

#include <SECore/Ecs/Component.h>
#include <SERender/Entity/Camera.h>
#include <SECore/Reflect.h>

namespace SEngine
{
    struct CameraComp : public Component<CameraComp> 
    {
        ENABLE_SERIALIZE(Component<CameraComp>)
        CameraComp(Actor & actor) : Component(actor) {}
        virtual ~CameraComp() = default;
        virtual void Attach() override;
        Camera m_camera;
    };

    REF_REGISTER_CLASS(CameraComp, 
        REF_REGISTER_FIELD(CameraComp, m_camera)
    )

} // namespace SEngine


#endif